

//
//  ZXStatusCellFrm.m
//  ZXOCWeiBo
//
//  Created by mac on 15/12/10.
//  Copyright © 2015年 itcast. All rights reserved.
//

#import "ZXStatusCellFrm.h"
/**
 *  微博cell的frm 模型
 */
@implementation ZXStatusCellFrm

-(void)setStatuses:(ZXStatuses *)statuses
{
    _statuses = statuses;
    
    //计算DetailFrm
 ZXStatusDetailFrm * detailFrm = [[ZXStatusDetailFrm alloc]init];
    detailFrm.statuses = statuses;
    self.detailFrm = detailFrm;
    
    //设置toolBarFrm
    CGFloat toolBarY = CGRectGetMaxY(detailFrm.selfFrm);
    CGFloat toolBarW = UIScreenW;
    CGFloat toolBarH = 36;
    self.toolBarFrm = CGRectMake(0, toolBarY, toolBarW, toolBarH);
}
-(CGFloat)cellHeigt
{
    return CGRectGetMaxY(self.toolBarFrm);
}

@end
